# serializers.py
from rest_framework import serializers
from .models import Doctor


class DoctorUpdateSerializer(serializers.ModelSerializer):
    class Meta:
        model = Doctor
        fields = '__all__'  # 或者可以列出需要更新的字段，例如：['doctor_name', 'gender', 'age', ...]
